define(['jquery'], () => {
    function fn() {
        //当前模块实现某项功能的代码
        //轮播图
        var mySwiper = new Swiper('.swiper', {
            autoplay: true,
            loop: true,
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
                hideOnClick: true,
                // renderBullet: function (index, className) {
                //     return '<span class="' + className + '">' + (index + 1) + '</span>';
                // },
            },
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },


        })

    }
    //返回函数名称，将函数调用的控制权交给main.js文件中
    return {
        fn: fn
    }
})